Microsoft Dynamics NAV 2013 Application Design by Mark Brummel

Microsoft Dynamics NAV 2013 Application Design by Mark Brummel

Author:Mark Brummel
Language: eng
Format: mobi, epub, pdf
Publisher: Packt Publishing
Published: 2014-09-15T21:00:00+00:00


There should be at least one sales line with a Quantity:SalesLine.SETRANGE("Document Type","Document Type");

SalesLine.SETRANGE("Document No.","No.");

SalesLine.SETFILTER(Type,'>0');

SalesLine.SETFILTER(Quantity,'<>0');

IF NOT SalesLine.FIND('-') THEN

ERROR(Text001,"Document Type","No.");

When the testing is done, some final calculations are implemented. These calculations are document calculations that span over the individual sales lines:SalesSetup.GET;

IF SalesSetup."Calc. Inv. Discount" THEN BEGIN

CODEUNIT.RUN(CODEUNIT::"Sales-Calc. Discount",SalesLine);

GET("Document Type","No.");

END;



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.